export default class CatUnlockSystem {
    constructor(scene) {
        this.scene = scene;
        this.unlockConditions = {
            'cat_02': { gold: 500 },
            'cat_03': { orders: 10 }
        };
    }

    checkUnlocks() {
        const { gold } = this.scene.registry.values;
        const unlocked = [];
        
        Object.entries(this.unlockConditions).forEach(([catId, condition]) => {
            if (gold >= condition.gold) {
                unlocked.push(catId);
            }
        });
        
        this.scene.events.emit('cats_unlocked', unlocked);
    }
}